﻿@model IEnumerable<Article>
@Html.Extra()
@{
    var LastReadNoticeTime = CookieHelper.Get("LastReadNoticeTime");
}

@foreach (var item in Model.OrderByDescending(r=>r.CreateTime))
{
    if (ConvertHelper.ToDateTime(LastReadNoticeTime) < item.CreateTime.Date)
    {
        <li>
            <h4>
                未读公告《@item.Title》
                <em style=" float:right; margin-right:10px; font-style:normal;">
                    <a href="javascript:void(0);" onclick="detailForNotice('@item.Id');">点击查看</a>
                </em>
            </h4>
        </li>
    }

}
<script>
    function detailForNotice(id)
    {
        var url = "/CMS/Article/Detail/" + id + "?VPartial=DetailForIndex";
        parent.activeTab('CMS_Article', '公告详细', url);
        top.winClose();
    }
</script>